<?php
	// Defino si existe Branding de un Sponsor
	if($this->Session->read('ClientesUsuarioLogueado.sponsor') == "S"){
		$mostrar_branding = "display:block; height: 110px;";
		$altura_contenido = 115;
	}else{
		$mostrar_branding = "display:none; height: 0px";
		$altura_contenido = 55;
	}

	// Defino si existe Skyscraper
	if($this->Session->read('ClientesUsuarioLogueado.skyscraper') == "S"){
		$mostrar_skyscraper = "display:block;";
		$ancho_contenido = "66%";
	}else{
		$mostrar_skyscraper = "display:none;";
		$ancho_contenido = "76%";
	}

/*
	// Obtengo la cantidad de pacientes cargados en la Base de Datos
	$total_pacientes = Cache::read('pacientescache_'.$this->Session->read('ClientesUsuarioLogueado.id'));
	if(empty($total_pacientes)){
	   $total_pacientes = $this->requestAction('/clients_people/totalpacientes');
	   Cache::write('pacientescache_'.$this->Session->read('ClientesUsuarioLogueado.id'), $total_pacientes);
	}

	$total_medicamentos = Cache::read('medicamentoscache');
	if(empty($total_medicamentos)){
	   $total_medicamentos = $this->requestAction('/vademecums/totalmedicamentos');
	   Cache::write('medicamentoscache', $total_medicamentos);
	}

	$totalproblemas= Cache::read('problemascache');
	if(empty($totalproblemas)){
	   $totalproblemas = $this->requestAction('/problems/totalproblemas');
	   Cache::write('problemascache', $totalproblemas);
	}

	$total_practicas= Cache::read('practicascache');
	if(empty($total_practicas)){
	   $total_practicas = $this->requestAction('/practices/totalpracticas');
	   Cache::write('practicascache', $total_practicas);
	}
*/

	// Defino el Tiempo Faltante para que termine la Sesión
	// $tiempo_fin_sesion = $this ->Session->read('Config.time') - mktime(date("H"),date("i"),date("s"),date("m"),date("d"),date("Y"));

?>
<?php header("Content-type: text/html; charset=utf-8");?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<?php echo $this->Html->charset(); ?>
	<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
	<title>
		<?php __('Epicrisis'); ?>
		<?php //echo $title_for_layout; ?>
	</title>
	<?php
		echo $this->Html->meta('icon');
//		echo $this->Html->css('/js/jscal/css/jscal2');
//		echo $this->Html->css('/js/jscal/css/border-radius');
//		echo $this->Html->css('/js/jscal/css/win2k/win2k');
//		echo $this->Html->css('/js/jscal/css/steel/steel');
//		echo $this->Html->css('jquery.countdown');
		echo $this->Html->css('rm');
		echo $this->Html->css('calendar');
		echo $this->Html->css('tablesorter');
		echo $this->Html->css('ui-lightness/jquery-ui-1.8.11.custom');
		echo $this->Html->css('jquery.dialogr');
		echo $this->Html->css('chosen');
		echo $this->Html->css('jquery.lightbox-0.5');
		echo $scripts_for_layout;
		echo $html->meta('icon','/images/favicon.ico', array('type' =>'icon'));

		echo $javascript->link('prototype-1.7');
		echo $javascript->link('scriptaculous');
//		echo $javascript->link('jquery-1.3.2.min'); 
//		echo $javascript->link('jquery.tools.min'); // Incluye jQuery 1.4.2
		echo $javascript->link('http://cdn.jquerytools.org/1.2.6/jquery.tools.min.js'); // Incluye jQuery 1.6.4, Tabs, Tooltip, Scrollable, Overlay
		echo $javascript->link('jquery-ui-1.8.11.custom.min');
		echo $javascript->link('ui.dialogr'); // Agrega la funcionalidad de Minimizar y Maximizar un Dialog

		echo $javascript->link('chosen.jquery.min');
		echo $javascript->link('jquery.tipsy');
		echo $javascript->link('jquery.marquee');
		echo $javascript->link('jquery.tablesorter.min'); 
		echo $javascript->link('jquery.lightbox-0.5.pack'); 
		echo $javascript->link('epicrisiscore');

//		echo $javascript->link('jquery.autocomplete-min'); 
//		echo $javascript->link('jquery.corner-min');
//		echo $javascript->link('jquery.countdown.pack');
//		echo $javascript->link('jscal/jscal2');
//		echo $javascript->link('jscal/lang/es');
	?>
</head>
<body>
<script type="text/javascript">$j = jQuery.noConflict();</script> 
<script type="text/javascript">
<?php 
/*
	$remoteFunction1 = $ajax->remoteFunction( 
	    array( 
		'url' => array( 'controller' => 'turns', 'action' => 'proximos'), 
		'update' => 'proximos_pacientes', 'indicator' => 'cargando' 
	    ) 
	);

	echo $remoteFunction1.";";
*/
?>
</script>
	<!-- start header -->
	<div id="cargando" style="position: fixed; display:none;"><p><?php __('Cargando...'); ?></p></div>
	<div id="logo_logueado" style="position: fixed; z-index: 99;">
		<div id="pestanas2">
<?php 
			echo $ajax->link($html->image("/images/logo-ch.png", array('width' => '45', 'align' => 'absbottom')),'/dashboards', array( 'update' => 'panel_derecho', 'indicator' => 'cargando', 'escape'=> false));
?>
		</div>
		<div id="pestanas">
			<label>
<?php 
			echo $ajax->link($html->image("/images/ico-home.png", array('height' => '24','align' => 'absbottom','title' => __('Inicio',true),'alt' => __('Inicio',true))),'/dashboards', array( 'update' => 'panel_derecho', 'indicator' => 'cargando', 'escape'=> false));
?>
			</label>
		</div>
		<div id="pestanas">
			<label>
<?php 
			echo $ajax->link($html->image("/images/ico-perfil.png", array('height' => '24','align' => 'absbottom','title' => __('Listado de Pacientes',true),'alt' => __('Listado de Pacientes',true))),'/people/listado', array( 'update' => 'panel_derecho', 'indicator' => 'cargando', 'escape'=> false));
?>
			</label>
		</div>
		<div id="pestanas">
			<label>
<?php 
			echo $ajax->link($html->image("/images/ico-search.png", array('height' => '24','align' => 'absbottom','title' => __('Buscar un Paciente',true),'alt' => __('Buscar un Paciente',true))),'/people/search', array( 'update' => 'panel_derecho', 'indicator' => 'cargando', 'escape'=> false));
?>
			</label>
		</div>
		<div id="pestanas">
			<label>
<?php 
			echo $ajax->link($html->image("/images/ico-nuevo.png", array('align' => 'absbottom','title' => __('Cargar un Paciente',true),'alt' => __('Cargar un Paciente',true))),'/people/add', array( 'update' => 'panel_derecho', 'indicator' => 'cargando', 'escape'=> false));
?>
			</label>

		</div>
		<div id="pestanas">
			<label><a href="/graficos"><img src="/images/ico-grafico.png"  height="24" align="absbottom" alt="<?php __('Ver Reportes') ?>" title="<?php __('Ver Reportes') ?>"></a></label>
		</div>
		<!-- <div id="pestanas">
			<label><a href="#"><img src="/images/ico-informes.png"  height="24" align="absbottom" alt="<?php __('Informes') ?>" title="<?php __('Informes') ?>"></a></label>
		</div> -->
		<div id="pestanas" style="margin-right: 10px; float: right;">
			<label>
<?php 
			echo $ajax->link($html->image("/images/ico-feedback.png", array('height' => '24','align' => 'absbottom','title' => __('Dejanos tu Feedback',true),'alt' => __('Dejanos tu Feedback',true))),'/feedbacks', array( 'update' => 'panel_derecho', 'indicator' => 'cargando', 'escape'=> false));
?>
			</label>
		</div>
 		<div id="usuario_logueado"></div>
		<div id="pestanas3" style="background: #ededed; border: 1px solid #C1C1C1">
			<div id="nombre_usuario"><?php echo __($session->read('VistaActual'),true)." ".$session->read('Auth.User.name')." ".$session->read('Auth.User.lastname') ?>
				<div id="opciones_usuario" style="display:none;">
					<table cellpadding="0" cellspacing="0">
<?php
	// Si el Usuario Logueado tiene más de 1 Rol
	if(count($this->Session->read('ListadoRolesUsuarioLogueado')) > 1){

		echo '<tr><td>Cambiar de Rol';
		foreach($this->Session->read('ListadoRolesUsuarioLogueado') AS $id_rol => $registro){
			if($registro <> $this->Session->read('VistaActual')){
				echo '<div style="margin-top: 7px;margin-bottom: 7px;margin-left: 5px;"><a href="#" onclick="SetRolActual('.$id_rol.')">'.__($registro, true).'</a></div>';
			}
		}
		echo '</td></tr>';
	}
?>
					<tr>
						<td><?php echo $this->Html->image("/images/ico-candado-cerrado.png", array('alt' => __('Cerrar Sesión',true),'title' => __('Cerrar Sesión',true),'width' => '15', 'align' => 'absbottom')).$this->Html->link("Cerrar Sesión","/users/logout",array('escape'=>false),__('¿Está seguro que desea Salir?',true));?></td>
					</tr>
					</table>
				</div>
			</div>
		</div>

		<div id="pestanas3" style="background: #ededed; border: 1px solid #C1C1C1">
			<div id="nombre_cliente"><?php echo $session->read('ClientesUsuarioLogueado.name') ?>
				<div id="opciones_cliente" style="display:none;">
					<table cellpadding="0" cellspacing="0">
					<tr>
						<td><?php echo $ajax->link(__('Exportar Datos', true),'/clients/download', array( 'update' => 'panel_derecho', 'indicator' => 'cargando', 'escape'=> false));?></td>
					</tr>
<?php
	if($this->requestAction('/users/isAdmin')){
?>
					<tr>
						<td><?php echo $ajax->link(__('Configuración', true),'/clients/view/'.$session->read('ClientesUsuarioLogueado.id'), array( 'update' => 'panel_derecho', 'indicator' => 'cargando', 'escape'=> false));?></td>
					</tr>
<?php
	}
?>
					</table>
				</div>
			</div>

		</div>
<?php
	if($this->requestAction('/users/mostrarmsgupdate') ){
		$mensaje_update = $this->Session->read('UltimoUpdateUsuario_'.$this ->Session->read('Auth.User.id'));
		echo '<div id="msg_update"><h1>'.__('Novedades', true).'</h1><p>'.nl2br($mensaje_update['Update']['name']).'</p><p><a href="javascript:ConfirmarUpdates()" class="link_destacado">'.__('Aceptar', true).'</a></p></div>';
	}
?>
		<img src="/images/loading3.gif" id="loading_panel_derecho" align="absbottom" vspace="5" style="display:none"/>
	</div>
	<!-- end header -->
	<!-- start branding -->
	<div id="panel_branding" style="position: fixed; z-index: 98;<?php echo $mostrar_branding ?>">
		<div id="branding_logo"><img src="/images/logo-abbott.png"></div>
		<div id="branding_caller"><a href="#"><img src="/images/img-phone-call.png" width="50" title="Llamar APM" alt="Llamar APM"></a></div>
		<div id="branding_forms">
			<div id="pestanas3" style="background: #ededed; border: 1px solid #C1C1C1">
				<div id="nombre_cliente">Formularios</div>
			</div>
		</div>
		<div id="branding_banner"><img src="/images/ej-banner-468x60.png" title="Promoción" alt="Promoción"></div>
		<div id="branding_channel"><marquee behavior="scroll" direction="left" scrollamount="2" width="300"><p>DAYAMINERAL asocia las vitaminas esenciales, los minerales y oligo elementos, en concentraciones muy aproximadas a las recomendadas por las autoridades en la materia. Las concentraciones vitamínicas y minerales de DAYAMINERAL coadyuvan a lograr un crecimiento óptimo y aseguran una buena regulación nutritiva y un buen estado de salud del paciente.</p></marquee></div>
	</div>
	<!-- end branding -->
	<!-- start page -->
		<div id="panel_izquierdo" style="margin-top: <?php echo $altura_contenido ?>px;">
			<div id="pestanas_roja" ><?php echo $ajax->link(__("Demanda Espontanea", true),'/turns/add', array( 'update' => 'panel_derecho', 'indicator' => 'cargando', 'escape'=> false));?></div>
			<!-- <div id="pestanas_roja" ><?php echo $ajax->link("Tareas",'/dashboards', array( 'update' => 'panel_derecho', 'indicator' => 'cargando', 'escape'=> false));?></div> -->
			<div id="datepicker" align="center"  style="margin-top: 10px;height: 172px;"></div>

			<div id="evolucionResizer" style="display:none;padding:5px; padding-bottom:30px; width:250px; height:320px;" class="ui-widget-content">
				<div id="accordion_evolucion">
					<h3><a href="#">Evolución</a></h3>
					<div><textarea name="data[Evolution][description]" cols="30" rows="6" id="EvolutionDescription"></textarea></div>
					<h3><a href="#">Problemas</a></h3>
					<div>Second content</div>
					<h3><a href="#">Prescripciones</a></h3>
					<div>Second content</div>
					<h3><a href="#">Signos Vitales</a></h3>
					<div id="evol_signos_vitales">
						<div>Signo 1<input name="data[PeopleSign][valor][1]" type="text" maxlength="19" id="PeopleSignValor1" style="width: 30%;"></div>
<table cellpadding="0" cellspacing="0">
	<tbody><tr>
			<th>Signo Vital</th>
			<th>Valor</th>
			<th>Fecha</th>
	</tr>
			<tr class="altrow">
				<td><b>Temperatura Axilar</b><input type="hidden" name="data[PeopleSign][sign_id][1]" value="5" id="PeopleSignSignId1"></td>
				<td><div class="input text"><label for="PeopleSignValor1"></label><input name="data[PeopleSign][valor][1]" type="text" maxlength="19" id="PeopleSignValor1"></div></td>
				<td><div class="input date"><label for="PeopleSignFecha1Month"></label><select name="data[fecha][1][day]" id="fecha1Day">
<option value="01">1</option>
<option value="02">2</option>
<option value="03">3</option>
<option value="04">4</option>
<option value="05">5</option>
<option value="06">6</option>
<option value="07">7</option>
<option value="08">8</option>
<option value="09">9</option>
<option value="10">10</option>
<option value="11">11</option>
<option value="12">12</option>
<option value="13">13</option>
<option value="14">14</option>
<option value="15">15</option>
<option value="16">16</option>
<option value="17">17</option>
<option value="18">18</option>
<option value="19">19</option>
<option value="20">20</option>
<option value="21">21</option>
<option value="22">22</option>
<option value="23">23</option>
<option value="24">24</option>
<option value="25">25</option>
<option value="26">26</option>
<option value="27">27</option>
<option value="28" selected="selected">28</option>
<option value="29">29</option>
<option value="30">30</option>
<option value="31">31</option>
</select>-<select name="data[fecha][1][month]" id="fecha1Month">
<option value="01">Enero</option>
<option value="02">Febrero</option>
<option value="03">Marzo</option>
<option value="04">Abril</option>
<option value="05">Mayo</option>
<option value="06">Junio</option>
<option value="07">Julio</option>
<option value="08">Agosto</option>
<option value="09">Septiembre</option>
<option value="10">Octubre</option>
<option value="11" selected="selected">Noviembre</option>
<option value="12">Diciembre</option>
</select>-<select name="data[fecha][1][year]" id="fecha1Year">
<option value="2011" selected="selected">2011</option>
<option value="2010">2010</option>
<option value="2009">2009</option>
<option value="2008">2008</option>
<option value="2007">2007</option>
<option value="2006">2006</option>
<option value="2005">2005</option>
<option value="2004">2004</option>
<option value="2003">2003</option>
<option value="2002">2002</option>
<option value="2001">2001</option>
<option value="2000">2000</option>
<option value="1999">1999</option>
<option value="1998">1998</option>
<option value="1997">1997</option>
<option value="1996">1996</option>
<option value="1995">1995</option>
<option value="1994">1994</option>
<option value="1993">1993</option>
<option value="1992">1992</option>
<option value="1991">1991</option>
<option value="1990">1990</option>
<option value="1989">1989</option>
<option value="1988">1988</option>
<option value="1987">1987</option>
<option value="1986">1986</option>
<option value="1985">1985</option>
<option value="1984">1984</option>
<option value="1983">1983</option>
<option value="1982">1982</option>
<option value="1981">1981</option>
<option value="1980">1980</option>
<option value="1979">1979</option>
<option value="1978">1978</option>
<option value="1977">1977</option>
<option value="1976">1976</option>
<option value="1975">1975</option>
<option value="1974">1974</option>
<option value="1973">1973</option>
<option value="1972">1972</option>
<option value="1971">1971</option>
<option value="1970">1970</option>
<option value="1969">1969</option>
<option value="1968">1968</option>
<option value="1967">1967</option>
<option value="1966">1966</option>
<option value="1965">1965</option>
<option value="1964">1964</option>
<option value="1963">1963</option>
<option value="1962">1962</option>
<option value="1961">1961</option>
<option value="1960">1960</option>
<option value="1959">1959</option>
<option value="1958">1958</option>
<option value="1957">1957</option>
<option value="1956">1956</option>
<option value="1955">1955</option>
<option value="1954">1954</option>
<option value="1953">1953</option>
<option value="1952">1952</option>
<option value="1951">1951</option>
<option value="1950">1950</option>
<option value="1949">1949</option>
<option value="1948">1948</option>
<option value="1947">1947</option>
<option value="1946">1946</option>
<option value="1945">1945</option>
<option value="1944">1944</option>
<option value="1943">1943</option>
<option value="1942">1942</option>
<option value="1941">1941</option>
<option value="1940">1940</option>
<option value="1939">1939</option>
<option value="1938">1938</option>
<option value="1937">1937</option>
<option value="1936">1936</option>
<option value="1935">1935</option>
<option value="1934">1934</option>
<option value="1933">1933</option>
<option value="1932">1932</option>
<option value="1931">1931</option>
</select></div></td>
			</tr>
			<tr>
				<td><b>Tensión Arterial Sistólica</b><input type="hidden" name="data[PeopleSign][sign_id][2]" value="6" id="PeopleSignSignId2"></td>
				<td><div class="input text"><label for="PeopleSignValor2"></label><input name="data[PeopleSign][valor][2]" type="text" maxlength="19" id="PeopleSignValor2"></div></td>
				<td><div class="input date"><label for="PeopleSignFecha2Month"></label><select name="data[fecha][2][day]" id="fecha2Day">
<option value="01">1</option>
<option value="02">2</option>
<option value="03">3</option>
<option value="04">4</option>
<option value="05">5</option>
<option value="06">6</option>
<option value="07">7</option>
<option value="08">8</option>
<option value="09">9</option>
<option value="10">10</option>
<option value="11">11</option>
<option value="12">12</option>
<option value="13">13</option>
<option value="14">14</option>
<option value="15">15</option>
<option value="16">16</option>
<option value="17">17</option>
<option value="18">18</option>
<option value="19">19</option>
<option value="20">20</option>
<option value="21">21</option>
<option value="22">22</option>
<option value="23">23</option>
<option value="24">24</option>
<option value="25">25</option>
<option value="26">26</option>
<option value="27">27</option>
<option value="28" selected="selected">28</option>
<option value="29">29</option>
<option value="30">30</option>
<option value="31">31</option>
</select>-<select name="data[fecha][2][month]" id="fecha2Month">
<option value="01">Enero</option>
<option value="02">Febrero</option>
<option value="03">Marzo</option>
<option value="04">Abril</option>
<option value="05">Mayo</option>
<option value="06">Junio</option>
<option value="07">Julio</option>
<option value="08">Agosto</option>
<option value="09">Septiembre</option>
<option value="10">Octubre</option>
<option value="11" selected="selected">Noviembre</option>
<option value="12">Diciembre</option>
</select>-<select name="data[fecha][2][year]" id="fecha2Year">
<option value="2011" selected="selected">2011</option>
<option value="2010">2010</option>
<option value="2009">2009</option>
<option value="2008">2008</option>
<option value="2007">2007</option>
<option value="2006">2006</option>
<option value="2005">2005</option>
<option value="2004">2004</option>
<option value="2003">2003</option>
<option value="2002">2002</option>
<option value="2001">2001</option>
<option value="2000">2000</option>
<option value="1999">1999</option>
<option value="1998">1998</option>
<option value="1997">1997</option>
<option value="1996">1996</option>
<option value="1995">1995</option>
<option value="1994">1994</option>
<option value="1993">1993</option>
<option value="1992">1992</option>
<option value="1991">1991</option>
<option value="1990">1990</option>
<option value="1989">1989</option>
<option value="1988">1988</option>
<option value="1987">1987</option>
<option value="1986">1986</option>
<option value="1985">1985</option>
<option value="1984">1984</option>
<option value="1983">1983</option>
<option value="1982">1982</option>
<option value="1981">1981</option>
<option value="1980">1980</option>
<option value="1979">1979</option>
<option value="1978">1978</option>
<option value="1977">1977</option>
<option value="1976">1976</option>
<option value="1975">1975</option>
<option value="1974">1974</option>
<option value="1973">1973</option>
<option value="1972">1972</option>
<option value="1971">1971</option>
<option value="1970">1970</option>
<option value="1969">1969</option>
<option value="1968">1968</option>
<option value="1967">1967</option>
<option value="1966">1966</option>
<option value="1965">1965</option>
<option value="1964">1964</option>
<option value="1963">1963</option>
<option value="1962">1962</option>
<option value="1961">1961</option>
<option value="1960">1960</option>
<option value="1959">1959</option>
<option value="1958">1958</option>
<option value="1957">1957</option>
<option value="1956">1956</option>
<option value="1955">1955</option>
<option value="1954">1954</option>
<option value="1953">1953</option>
<option value="1952">1952</option>
<option value="1951">1951</option>
<option value="1950">1950</option>
<option value="1949">1949</option>
<option value="1948">1948</option>
<option value="1947">1947</option>
<option value="1946">1946</option>
<option value="1945">1945</option>
<option value="1944">1944</option>
<option value="1943">1943</option>
<option value="1942">1942</option>
<option value="1941">1941</option>
<option value="1940">1940</option>
<option value="1939">1939</option>
<option value="1938">1938</option>
<option value="1937">1937</option>
<option value="1936">1936</option>
<option value="1935">1935</option>
<option value="1934">1934</option>
<option value="1933">1933</option>
<option value="1932">1932</option>
<option value="1931">1931</option>
</select></div></td>
			</tr>
			<tr class="altrow">
				<td><b>Tensión Arterial Diastólica</b><input type="hidden" name="data[PeopleSign][sign_id][3]" value="7" id="PeopleSignSignId3"></td>
				<td><div class="input text"><label for="PeopleSignValor3"></label><input name="data[PeopleSign][valor][3]" type="text" maxlength="19" id="PeopleSignValor3"></div></td>
				<td><div class="input date"><label for="PeopleSignFecha3Month"></label><select name="data[fecha][3][day]" id="fecha3Day">
<option value="01">1</option>
<option value="02">2</option>
<option value="03">3</option>
<option value="04">4</option>
<option value="05">5</option>
<option value="06">6</option>
<option value="07">7</option>
<option value="08">8</option>
<option value="09">9</option>
<option value="10">10</option>
<option value="11">11</option>
<option value="12">12</option>
<option value="13">13</option>
<option value="14">14</option>
<option value="15">15</option>
<option value="16">16</option>
<option value="17">17</option>
<option value="18">18</option>
<option value="19">19</option>
<option value="20">20</option>
<option value="21">21</option>
<option value="22">22</option>
<option value="23">23</option>
<option value="24">24</option>
<option value="25">25</option>
<option value="26">26</option>
<option value="27">27</option>
<option value="28" selected="selected">28</option>
<option value="29">29</option>
<option value="30">30</option>
<option value="31">31</option>
</select>-<select name="data[fecha][3][month]" id="fecha3Month">
<option value="01">Enero</option>
<option value="02">Febrero</option>
<option value="03">Marzo</option>
<option value="04">Abril</option>
<option value="05">Mayo</option>
<option value="06">Junio</option>
<option value="07">Julio</option>
<option value="08">Agosto</option>
<option value="09">Septiembre</option>
<option value="10">Octubre</option>
<option value="11" selected="selected">Noviembre</option>
<option value="12">Diciembre</option>
</select>-<select name="data[fecha][3][year]" id="fecha3Year">
<option value="2011" selected="selected">2011</option>
<option value="2010">2010</option>
<option value="2009">2009</option>
<option value="2008">2008</option>
<option value="2007">2007</option>
<option value="2006">2006</option>
<option value="2005">2005</option>
<option value="2004">2004</option>
<option value="2003">2003</option>
<option value="2002">2002</option>
<option value="2001">2001</option>
<option value="2000">2000</option>
<option value="1999">1999</option>
<option value="1998">1998</option>
<option value="1997">1997</option>
<option value="1996">1996</option>
<option value="1995">1995</option>
<option value="1994">1994</option>
<option value="1993">1993</option>
<option value="1992">1992</option>
<option value="1991">1991</option>
<option value="1990">1990</option>
<option value="1989">1989</option>
<option value="1988">1988</option>
<option value="1987">1987</option>
<option value="1986">1986</option>
<option value="1985">1985</option>
<option value="1984">1984</option>
<option value="1983">1983</option>
<option value="1982">1982</option>
<option value="1981">1981</option>
<option value="1980">1980</option>
<option value="1979">1979</option>
<option value="1978">1978</option>
<option value="1977">1977</option>
<option value="1976">1976</option>
<option value="1975">1975</option>
<option value="1974">1974</option>
<option value="1973">1973</option>
<option value="1972">1972</option>
<option value="1971">1971</option>
<option value="1970">1970</option>
<option value="1969">1969</option>
<option value="1968">1968</option>
<option value="1967">1967</option>
<option value="1966">1966</option>
<option value="1965">1965</option>
<option value="1964">1964</option>
<option value="1963">1963</option>
<option value="1962">1962</option>
<option value="1961">1961</option>
<option value="1960">1960</option>
<option value="1959">1959</option>
<option value="1958">1958</option>
<option value="1957">1957</option>
<option value="1956">1956</option>
<option value="1955">1955</option>
<option value="1954">1954</option>
<option value="1953">1953</option>
<option value="1952">1952</option>
<option value="1951">1951</option>
<option value="1950">1950</option>
<option value="1949">1949</option>
<option value="1948">1948</option>
<option value="1947">1947</option>
<option value="1946">1946</option>
<option value="1945">1945</option>
<option value="1944">1944</option>
<option value="1943">1943</option>
<option value="1942">1942</option>
<option value="1941">1941</option>
<option value="1940">1940</option>
<option value="1939">1939</option>
<option value="1938">1938</option>
<option value="1937">1937</option>
<option value="1936">1936</option>
<option value="1935">1935</option>
<option value="1934">1934</option>
<option value="1933">1933</option>
<option value="1932">1932</option>
<option value="1931">1931</option>
</select></div></td>
			</tr>
			<tr>
				<td><b>Frecuencia Cardíaca</b><input type="hidden" name="data[PeopleSign][sign_id][4]" value="8" id="PeopleSignSignId4"></td>
				<td><div class="input text"><label for="PeopleSignValor4"></label><input name="data[PeopleSign][valor][4]" type="text" maxlength="19" id="PeopleSignValor4"></div></td>
				<td><div class="input date"><label for="PeopleSignFecha4Month"></label><select name="data[fecha][4][day]" id="fecha4Day">
<option value="01">1</option>
<option value="02">2</option>
<option value="03">3</option>
<option value="04">4</option>
<option value="05">5</option>
<option value="06">6</option>
<option value="07">7</option>
<option value="08">8</option>
<option value="09">9</option>
<option value="10">10</option>
<option value="11">11</option>
<option value="12">12</option>
<option value="13">13</option>
<option value="14">14</option>
<option value="15">15</option>
<option value="16">16</option>
<option value="17">17</option>
<option value="18">18</option>
<option value="19">19</option>
<option value="20">20</option>
<option value="21">21</option>
<option value="22">22</option>
<option value="23">23</option>
<option value="24">24</option>
<option value="25">25</option>
<option value="26">26</option>
<option value="27">27</option>
<option value="28" selected="selected">28</option>
<option value="29">29</option>
<option value="30">30</option>
<option value="31">31</option>
</select>-<select name="data[fecha][4][month]" id="fecha4Month">
<option value="01">Enero</option>
<option value="02">Febrero</option>
<option value="03">Marzo</option>
<option value="04">Abril</option>
<option value="05">Mayo</option>
<option value="06">Junio</option>
<option value="07">Julio</option>
<option value="08">Agosto</option>
<option value="09">Septiembre</option>
<option value="10">Octubre</option>
<option value="11" selected="selected">Noviembre</option>
<option value="12">Diciembre</option>
</select>-<select name="data[fecha][4][year]" id="fecha4Year">
<option value="2011" selected="selected">2011</option>
<option value="2010">2010</option>
<option value="2009">2009</option>
<option value="2008">2008</option>
<option value="2007">2007</option>
<option value="2006">2006</option>
<option value="2005">2005</option>
<option value="2004">2004</option>
<option value="2003">2003</option>
<option value="2002">2002</option>
<option value="2001">2001</option>
<option value="2000">2000</option>
<option value="1999">1999</option>
<option value="1998">1998</option>
<option value="1997">1997</option>
<option value="1996">1996</option>
<option value="1995">1995</option>
<option value="1994">1994</option>
<option value="1993">1993</option>
<option value="1992">1992</option>
<option value="1991">1991</option>
<option value="1990">1990</option>
<option value="1989">1989</option>
<option value="1988">1988</option>
<option value="1987">1987</option>
<option value="1986">1986</option>
<option value="1985">1985</option>
<option value="1984">1984</option>
<option value="1983">1983</option>
<option value="1982">1982</option>
<option value="1981">1981</option>
<option value="1980">1980</option>
<option value="1979">1979</option>
<option value="1978">1978</option>
<option value="1977">1977</option>
<option value="1976">1976</option>
<option value="1975">1975</option>
<option value="1974">1974</option>
<option value="1973">1973</option>
<option value="1972">1972</option>
<option value="1971">1971</option>
<option value="1970">1970</option>
<option value="1969">1969</option>
<option value="1968">1968</option>
<option value="1967">1967</option>
<option value="1966">1966</option>
<option value="1965">1965</option>
<option value="1964">1964</option>
<option value="1963">1963</option>
<option value="1962">1962</option>
<option value="1961">1961</option>
<option value="1960">1960</option>
<option value="1959">1959</option>
<option value="1958">1958</option>
<option value="1957">1957</option>
<option value="1956">1956</option>
<option value="1955">1955</option>
<option value="1954">1954</option>
<option value="1953">1953</option>
<option value="1952">1952</option>
<option value="1951">1951</option>
<option value="1950">1950</option>
<option value="1949">1949</option>
<option value="1948">1948</option>
<option value="1947">1947</option>
<option value="1946">1946</option>
<option value="1945">1945</option>
<option value="1944">1944</option>
<option value="1943">1943</option>
<option value="1942">1942</option>
<option value="1941">1941</option>
<option value="1940">1940</option>
<option value="1939">1939</option>
<option value="1938">1938</option>
<option value="1937">1937</option>
<option value="1936">1936</option>
<option value="1935">1935</option>
<option value="1934">1934</option>
<option value="1933">1933</option>
<option value="1932">1932</option>
<option value="1931">1931</option>
</select></div></td>
			</tr>
			<tr class="altrow">
				<td><b>Frecuencia Respiratoria</b><input type="hidden" name="data[PeopleSign][sign_id][5]" value="9" id="PeopleSignSignId5"></td>
				<td><div class="input text"><label for="PeopleSignValor5"></label><input name="data[PeopleSign][valor][5]" type="text" maxlength="19" id="PeopleSignValor5"></div></td>
				<td><div class="input date"><label for="PeopleSignFecha5Month"></label><select name="data[fecha][5][day]" id="fecha5Day">
<option value="01">1</option>
<option value="02">2</option>
<option value="03">3</option>
<option value="04">4</option>
<option value="05">5</option>
<option value="06">6</option>
<option value="07">7</option>
<option value="08">8</option>
<option value="09">9</option>
<option value="10">10</option>
<option value="11">11</option>
<option value="12">12</option>
<option value="13">13</option>
<option value="14">14</option>
<option value="15">15</option>
<option value="16">16</option>
<option value="17">17</option>
<option value="18">18</option>
<option value="19">19</option>
<option value="20">20</option>
<option value="21">21</option>
<option value="22">22</option>
<option value="23">23</option>
<option value="24">24</option>
<option value="25">25</option>
<option value="26">26</option>
<option value="27">27</option>
<option value="28" selected="selected">28</option>
<option value="29">29</option>
<option value="30">30</option>
<option value="31">31</option>
</select>-<select name="data[fecha][5][month]" id="fecha5Month">
<option value="01">Enero</option>
<option value="02">Febrero</option>
<option value="03">Marzo</option>
<option value="04">Abril</option>
<option value="05">Mayo</option>
<option value="06">Junio</option>
<option value="07">Julio</option>
<option value="08">Agosto</option>
<option value="09">Septiembre</option>
<option value="10">Octubre</option>
<option value="11" selected="selected">Noviembre</option>
<option value="12">Diciembre</option>
</select>-<select name="data[fecha][5][year]" id="fecha5Year">
<option value="2011" selected="selected">2011</option>
<option value="2010">2010</option>
<option value="2009">2009</option>
<option value="2008">2008</option>
<option value="2007">2007</option>
<option value="2006">2006</option>
<option value="2005">2005</option>
<option value="2004">2004</option>
<option value="2003">2003</option>
<option value="2002">2002</option>
<option value="2001">2001</option>
<option value="2000">2000</option>
<option value="1999">1999</option>
<option value="1998">1998</option>
<option value="1997">1997</option>
<option value="1996">1996</option>
<option value="1995">1995</option>
<option value="1994">1994</option>
<option value="1993">1993</option>
<option value="1992">1992</option>
<option value="1991">1991</option>
<option value="1990">1990</option>
<option value="1989">1989</option>
<option value="1988">1988</option>
<option value="1987">1987</option>
<option value="1986">1986</option>
<option value="1985">1985</option>
<option value="1984">1984</option>
<option value="1983">1983</option>
<option value="1982">1982</option>
<option value="1981">1981</option>
<option value="1980">1980</option>
<option value="1979">1979</option>
<option value="1978">1978</option>
<option value="1977">1977</option>
<option value="1976">1976</option>
<option value="1975">1975</option>
<option value="1974">1974</option>
<option value="1973">1973</option>
<option value="1972">1972</option>
<option value="1971">1971</option>
<option value="1970">1970</option>
<option value="1969">1969</option>
<option value="1968">1968</option>
<option value="1967">1967</option>
<option value="1966">1966</option>
<option value="1965">1965</option>
<option value="1964">1964</option>
<option value="1963">1963</option>
<option value="1962">1962</option>
<option value="1961">1961</option>
<option value="1960">1960</option>
<option value="1959">1959</option>
<option value="1958">1958</option>
<option value="1957">1957</option>
<option value="1956">1956</option>
<option value="1955">1955</option>
<option value="1954">1954</option>
<option value="1953">1953</option>
<option value="1952">1952</option>
<option value="1951">1951</option>
<option value="1950">1950</option>
<option value="1949">1949</option>
<option value="1948">1948</option>
<option value="1947">1947</option>
<option value="1946">1946</option>
<option value="1945">1945</option>
<option value="1944">1944</option>
<option value="1943">1943</option>
<option value="1942">1942</option>
<option value="1941">1941</option>
<option value="1940">1940</option>
<option value="1939">1939</option>
<option value="1938">1938</option>
<option value="1937">1937</option>
<option value="1936">1936</option>
<option value="1935">1935</option>
<option value="1934">1934</option>
<option value="1933">1933</option>
<option value="1932">1932</option>
<option value="1931">1931</option>
</select></div></td>
			</tr>
			<tr>
				<td><b>Peso</b><input type="hidden" name="data[PeopleSign][sign_id][6]" value="10" id="PeopleSignSignId6"></td>
				<td><div class="input text"><label for="PeopleSignValor6"></label><input name="data[PeopleSign][valor][6]" type="text" maxlength="19" id="PeopleSignValor6"></div></td>
				<td><div class="input date"><label for="PeopleSignFecha6Month"></label><select name="data[fecha][6][day]" id="fecha6Day">
<option value="01">1</option>
<option value="02">2</option>
<option value="03">3</option>
<option value="04">4</option>
<option value="05">5</option>
<option value="06">6</option>
<option value="07">7</option>
<option value="08">8</option>
<option value="09">9</option>
<option value="10">10</option>
<option value="11">11</option>
<option value="12">12</option>
<option value="13">13</option>
<option value="14">14</option>
<option value="15">15</option>
<option value="16">16</option>
<option value="17">17</option>
<option value="18">18</option>
<option value="19">19</option>
<option value="20">20</option>
<option value="21">21</option>
<option value="22">22</option>
<option value="23">23</option>
<option value="24">24</option>
<option value="25">25</option>
<option value="26">26</option>
<option value="27">27</option>
<option value="28" selected="selected">28</option>
<option value="29">29</option>
<option value="30">30</option>
<option value="31">31</option>
</select>-<select name="data[fecha][6][month]" id="fecha6Month">
<option value="01">Enero</option>
<option value="02">Febrero</option>
<option value="03">Marzo</option>
<option value="04">Abril</option>
<option value="05">Mayo</option>
<option value="06">Junio</option>
<option value="07">Julio</option>
<option value="08">Agosto</option>
<option value="09">Septiembre</option>
<option value="10">Octubre</option>
<option value="11" selected="selected">Noviembre</option>
<option value="12">Diciembre</option>
</select>-<select name="data[fecha][6][year]" id="fecha6Year">
<option value="2011" selected="selected">2011</option>
<option value="2010">2010</option>
<option value="2009">2009</option>
<option value="2008">2008</option>
<option value="2007">2007</option>
<option value="2006">2006</option>
<option value="2005">2005</option>
<option value="2004">2004</option>
<option value="2003">2003</option>
<option value="2002">2002</option>
<option value="2001">2001</option>
<option value="2000">2000</option>
<option value="1999">1999</option>
<option value="1998">1998</option>
<option value="1997">1997</option>
<option value="1996">1996</option>
<option value="1995">1995</option>
<option value="1994">1994</option>
<option value="1993">1993</option>
<option value="1992">1992</option>
<option value="1991">1991</option>
<option value="1990">1990</option>
<option value="1989">1989</option>
<option value="1988">1988</option>
<option value="1987">1987</option>
<option value="1986">1986</option>
<option value="1985">1985</option>
<option value="1984">1984</option>
<option value="1983">1983</option>
<option value="1982">1982</option>
<option value="1981">1981</option>
<option value="1980">1980</option>
<option value="1979">1979</option>
<option value="1978">1978</option>
<option value="1977">1977</option>
<option value="1976">1976</option>
<option value="1975">1975</option>
<option value="1974">1974</option>
<option value="1973">1973</option>
<option value="1972">1972</option>
<option value="1971">1971</option>
<option value="1970">1970</option>
<option value="1969">1969</option>
<option value="1968">1968</option>
<option value="1967">1967</option>
<option value="1966">1966</option>
<option value="1965">1965</option>
<option value="1964">1964</option>
<option value="1963">1963</option>
<option value="1962">1962</option>
<option value="1961">1961</option>
<option value="1960">1960</option>
<option value="1959">1959</option>
<option value="1958">1958</option>
<option value="1957">1957</option>
<option value="1956">1956</option>
<option value="1955">1955</option>
<option value="1954">1954</option>
<option value="1953">1953</option>
<option value="1952">1952</option>
<option value="1951">1951</option>
<option value="1950">1950</option>
<option value="1949">1949</option>
<option value="1948">1948</option>
<option value="1947">1947</option>
<option value="1946">1946</option>
<option value="1945">1945</option>
<option value="1944">1944</option>
<option value="1943">1943</option>
<option value="1942">1942</option>
<option value="1941">1941</option>
<option value="1940">1940</option>
<option value="1939">1939</option>
<option value="1938">1938</option>
<option value="1937">1937</option>
<option value="1936">1936</option>
<option value="1935">1935</option>
<option value="1934">1934</option>
<option value="1933">1933</option>
<option value="1932">1932</option>
<option value="1931">1931</option>
</select></div></td>
			</tr>
			<tr class="altrow">
				<td><b>Altura</b><input type="hidden" name="data[PeopleSign][sign_id][7]" value="11" id="PeopleSignSignId7"></td>
				<td><div class="input text"><label for="PeopleSignValor7"></label><input name="data[PeopleSign][valor][7]" type="text" maxlength="19" id="PeopleSignValor7"></div></td>
				<td><div class="input date"><label for="PeopleSignFecha7Month"></label><select name="data[fecha][7][day]" id="fecha7Day">
<option value="01">1</option>
<option value="02">2</option>
<option value="03">3</option>
<option value="04">4</option>
<option value="05">5</option>
<option value="06">6</option>
<option value="07">7</option>
<option value="08">8</option>
<option value="09">9</option>
<option value="10">10</option>
<option value="11">11</option>
<option value="12">12</option>
<option value="13">13</option>
<option value="14">14</option>
<option value="15">15</option>
<option value="16">16</option>
<option value="17">17</option>
<option value="18">18</option>
<option value="19">19</option>
<option value="20">20</option>
<option value="21">21</option>
<option value="22">22</option>
<option value="23">23</option>
<option value="24">24</option>
<option value="25">25</option>
<option value="26">26</option>
<option value="27">27</option>
<option value="28" selected="selected">28</option>
<option value="29">29</option>
<option value="30">30</option>
<option value="31">31</option>
</select>-<select name="data[fecha][7][month]" id="fecha7Month">
<option value="01">Enero</option>
<option value="02">Febrero</option>
<option value="03">Marzo</option>
<option value="04">Abril</option>
<option value="05">Mayo</option>
<option value="06">Junio</option>
<option value="07">Julio</option>
<option value="08">Agosto</option>
<option value="09">Septiembre</option>
<option value="10">Octubre</option>
<option value="11" selected="selected">Noviembre</option>
<option value="12">Diciembre</option>
</select>-<select name="data[fecha][7][year]" id="fecha7Year">
<option value="2011" selected="selected">2011</option>
<option value="2010">2010</option>
<option value="2009">2009</option>
<option value="2008">2008</option>
<option value="2007">2007</option>
<option value="2006">2006</option>
<option value="2005">2005</option>
<option value="2004">2004</option>
<option value="2003">2003</option>
<option value="2002">2002</option>
<option value="2001">2001</option>
<option value="2000">2000</option>
<option value="1999">1999</option>
<option value="1998">1998</option>
<option value="1997">1997</option>
<option value="1996">1996</option>
<option value="1995">1995</option>
<option value="1994">1994</option>
<option value="1993">1993</option>
<option value="1992">1992</option>
<option value="1991">1991</option>
<option value="1990">1990</option>
<option value="1989">1989</option>
<option value="1988">1988</option>
<option value="1987">1987</option>
<option value="1986">1986</option>
<option value="1985">1985</option>
<option value="1984">1984</option>
<option value="1983">1983</option>
<option value="1982">1982</option>
<option value="1981">1981</option>
<option value="1980">1980</option>
<option value="1979">1979</option>
<option value="1978">1978</option>
<option value="1977">1977</option>
<option value="1976">1976</option>
<option value="1975">1975</option>
<option value="1974">1974</option>
<option value="1973">1973</option>
<option value="1972">1972</option>
<option value="1971">1971</option>
<option value="1970">1970</option>
<option value="1969">1969</option>
<option value="1968">1968</option>
<option value="1967">1967</option>
<option value="1966">1966</option>
<option value="1965">1965</option>
<option value="1964">1964</option>
<option value="1963">1963</option>
<option value="1962">1962</option>
<option value="1961">1961</option>
<option value="1960">1960</option>
<option value="1959">1959</option>
<option value="1958">1958</option>
<option value="1957">1957</option>
<option value="1956">1956</option>
<option value="1955">1955</option>
<option value="1954">1954</option>
<option value="1953">1953</option>
<option value="1952">1952</option>
<option value="1951">1951</option>
<option value="1950">1950</option>
<option value="1949">1949</option>
<option value="1948">1948</option>
<option value="1947">1947</option>
<option value="1946">1946</option>
<option value="1945">1945</option>
<option value="1944">1944</option>
<option value="1943">1943</option>
<option value="1942">1942</option>
<option value="1941">1941</option>
<option value="1940">1940</option>
<option value="1939">1939</option>
<option value="1938">1938</option>
<option value="1937">1937</option>
<option value="1936">1936</option>
<option value="1935">1935</option>
<option value="1934">1934</option>
<option value="1933">1933</option>
<option value="1932">1932</option>
<option value="1931">1931</option>
</select></div></td>
			</tr>
			<tr>
				<td><b>Perimetro Cefálico</b><input type="hidden" name="data[PeopleSign][sign_id][8]" value="12" id="PeopleSignSignId8"></td>
				<td><div class="input text"><label for="PeopleSignValor8"></label><input name="data[PeopleSign][valor][8]" type="text" maxlength="19" id="PeopleSignValor8"></div></td>
				<td><div class="input date"><label for="PeopleSignFecha8Month"></label><select name="data[fecha][8][day]" id="fecha8Day">
<option value="01">1</option>
<option value="02">2</option>
<option value="03">3</option>
<option value="04">4</option>
<option value="05">5</option>
<option value="06">6</option>
<option value="07">7</option>
<option value="08">8</option>
<option value="09">9</option>
<option value="10">10</option>
<option value="11">11</option>
<option value="12">12</option>
<option value="13">13</option>
<option value="14">14</option>
<option value="15">15</option>
<option value="16">16</option>
<option value="17">17</option>
<option value="18">18</option>
<option value="19">19</option>
<option value="20">20</option>
<option value="21">21</option>
<option value="22">22</option>
<option value="23">23</option>
<option value="24">24</option>
<option value="25">25</option>
<option value="26">26</option>
<option value="27">27</option>
<option value="28" selected="selected">28</option>
<option value="29">29</option>
<option value="30">30</option>
<option value="31">31</option>
</select>-<select name="data[fecha][8][month]" id="fecha8Month">
<option value="01">Enero</option>
<option value="02">Febrero</option>
<option value="03">Marzo</option>
<option value="04">Abril</option>
<option value="05">Mayo</option>
<option value="06">Junio</option>
<option value="07">Julio</option>
<option value="08">Agosto</option>
<option value="09">Septiembre</option>
<option value="10">Octubre</option>
<option value="11" selected="selected">Noviembre</option>
<option value="12">Diciembre</option>
</select>-<select name="data[fecha][8][year]" id="fecha8Year">
<option value="2011" selected="selected">2011</option>
<option value="2010">2010</option>
<option value="2009">2009</option>
<option value="2008">2008</option>
<option value="2007">2007</option>
<option value="2006">2006</option>
<option value="2005">2005</option>
<option value="2004">2004</option>
<option value="2003">2003</option>
<option value="2002">2002</option>
<option value="2001">2001</option>
<option value="2000">2000</option>
<option value="1999">1999</option>
<option value="1998">1998</option>
<option value="1997">1997</option>
<option value="1996">1996</option>
<option value="1995">1995</option>
<option value="1994">1994</option>
<option value="1993">1993</option>
<option value="1992">1992</option>
<option value="1991">1991</option>
<option value="1990">1990</option>
<option value="1989">1989</option>
<option value="1988">1988</option>
<option value="1987">1987</option>
<option value="1986">1986</option>
<option value="1985">1985</option>
<option value="1984">1984</option>
<option value="1983">1983</option>
<option value="1982">1982</option>
<option value="1981">1981</option>
<option value="1980">1980</option>
<option value="1979">1979</option>
<option value="1978">1978</option>
<option value="1977">1977</option>
<option value="1976">1976</option>
<option value="1975">1975</option>
<option value="1974">1974</option>
<option value="1973">1973</option>
<option value="1972">1972</option>
<option value="1971">1971</option>
<option value="1970">1970</option>
<option value="1969">1969</option>
<option value="1968">1968</option>
<option value="1967">1967</option>
<option value="1966">1966</option>
<option value="1965">1965</option>
<option value="1964">1964</option>
<option value="1963">1963</option>
<option value="1962">1962</option>
<option value="1961">1961</option>
<option value="1960">1960</option>
<option value="1959">1959</option>
<option value="1958">1958</option>
<option value="1957">1957</option>
<option value="1956">1956</option>
<option value="1955">1955</option>
<option value="1954">1954</option>
<option value="1953">1953</option>
<option value="1952">1952</option>
<option value="1951">1951</option>
<option value="1950">1950</option>
<option value="1949">1949</option>
<option value="1948">1948</option>
<option value="1947">1947</option>
<option value="1946">1946</option>
<option value="1945">1945</option>
<option value="1944">1944</option>
<option value="1943">1943</option>
<option value="1942">1942</option>
<option value="1941">1941</option>
<option value="1940">1940</option>
<option value="1939">1939</option>
<option value="1938">1938</option>
<option value="1937">1937</option>
<option value="1936">1936</option>
<option value="1935">1935</option>
<option value="1934">1934</option>
<option value="1933">1933</option>
<option value="1932">1932</option>
<option value="1931">1931</option>
</select></div></td>
			</tr>
			<tr class="altrow">
				<td><b>Saturación de Oxígeno</b><input type="hidden" name="data[PeopleSign][sign_id][9]" value="13" id="PeopleSignSignId9"></td>
				<td><div class="input text"><label for="PeopleSignValor9"></label><input name="data[PeopleSign][valor][9]" type="text" maxlength="19" id="PeopleSignValor9"></div></td>
				<td><div class="input date"><label for="PeopleSignFecha9Month"></label><select name="data[fecha][9][day]" id="fecha9Day">
<option value="01">1</option>
<option value="02">2</option>
<option value="03">3</option>
<option value="04">4</option>
<option value="05">5</option>
<option value="06">6</option>
<option value="07">7</option>
<option value="08">8</option>
<option value="09">9</option>
<option value="10">10</option>
<option value="11">11</option>
<option value="12">12</option>
<option value="13">13</option>
<option value="14">14</option>
<option value="15">15</option>
<option value="16">16</option>
<option value="17">17</option>
<option value="18">18</option>
<option value="19">19</option>
<option value="20">20</option>
<option value="21">21</option>
<option value="22">22</option>
<option value="23">23</option>
<option value="24">24</option>
<option value="25">25</option>
<option value="26">26</option>
<option value="27">27</option>
<option value="28" selected="selected">28</option>
<option value="29">29</option>
<option value="30">30</option>
<option value="31">31</option>
</select>-<select name="data[fecha][9][month]" id="fecha9Month">
<option value="01">Enero</option>
<option value="02">Febrero</option>
<option value="03">Marzo</option>
<option value="04">Abril</option>
<option value="05">Mayo</option>
<option value="06">Junio</option>
<option value="07">Julio</option>
<option value="08">Agosto</option>
<option value="09">Septiembre</option>
<option value="10">Octubre</option>
<option value="11" selected="selected">Noviembre</option>
<option value="12">Diciembre</option>
</select>-<select name="data[fecha][9][year]" id="fecha9Year">
<option value="2011" selected="selected">2011</option>
<option value="2010">2010</option>
<option value="2009">2009</option>
<option value="2008">2008</option>
<option value="2007">2007</option>
<option value="2006">2006</option>
<option value="2005">2005</option>
<option value="2004">2004</option>
<option value="2003">2003</option>
<option value="2002">2002</option>
<option value="2001">2001</option>
<option value="2000">2000</option>
<option value="1999">1999</option>
<option value="1998">1998</option>
<option value="1997">1997</option>
<option value="1996">1996</option>
<option value="1995">1995</option>
<option value="1994">1994</option>
<option value="1993">1993</option>
<option value="1992">1992</option>
<option value="1991">1991</option>
<option value="1990">1990</option>
<option value="1989">1989</option>
<option value="1988">1988</option>
<option value="1987">1987</option>
<option value="1986">1986</option>
<option value="1985">1985</option>
<option value="1984">1984</option>
<option value="1983">1983</option>
<option value="1982">1982</option>
<option value="1981">1981</option>
<option value="1980">1980</option>
<option value="1979">1979</option>
<option value="1978">1978</option>
<option value="1977">1977</option>
<option value="1976">1976</option>
<option value="1975">1975</option>
<option value="1974">1974</option>
<option value="1973">1973</option>
<option value="1972">1972</option>
<option value="1971">1971</option>
<option value="1970">1970</option>
<option value="1969">1969</option>
<option value="1968">1968</option>
<option value="1967">1967</option>
<option value="1966">1966</option>
<option value="1965">1965</option>
<option value="1964">1964</option>
<option value="1963">1963</option>
<option value="1962">1962</option>
<option value="1961">1961</option>
<option value="1960">1960</option>
<option value="1959">1959</option>
<option value="1958">1958</option>
<option value="1957">1957</option>
<option value="1956">1956</option>
<option value="1955">1955</option>
<option value="1954">1954</option>
<option value="1953">1953</option>
<option value="1952">1952</option>
<option value="1951">1951</option>
<option value="1950">1950</option>
<option value="1949">1949</option>
<option value="1948">1948</option>
<option value="1947">1947</option>
<option value="1946">1946</option>
<option value="1945">1945</option>
<option value="1944">1944</option>
<option value="1943">1943</option>
<option value="1942">1942</option>
<option value="1941">1941</option>
<option value="1940">1940</option>
<option value="1939">1939</option>
<option value="1938">1938</option>
<option value="1937">1937</option>
<option value="1936">1936</option>
<option value="1935">1935</option>
<option value="1934">1934</option>
<option value="1933">1933</option>
<option value="1932">1932</option>
<option value="1931">1931</option>
</select></div></td>
			</tr>
			<tr>
				<td><b>Temperatura Rectal</b><input type="hidden" name="data[PeopleSign][sign_id][10]" value="14" id="PeopleSignSignId10"></td>
				<td><div class="input text"><label for="PeopleSignValor10"></label><input name="data[PeopleSign][valor][10]" type="text" maxlength="19" id="PeopleSignValor10"></div></td>
				<td><div class="input date"><label for="PeopleSignFecha10Month"></label><select name="data[fecha][10][day]" id="fecha10Day">
<option value="01">1</option>
<option value="02">2</option>
<option value="03">3</option>
<option value="04">4</option>
<option value="05">5</option>
<option value="06">6</option>
<option value="07">7</option>
<option value="08">8</option>
<option value="09">9</option>
<option value="10">10</option>
<option value="11">11</option>
<option value="12">12</option>
<option value="13">13</option>
<option value="14">14</option>
<option value="15">15</option>
<option value="16">16</option>
<option value="17">17</option>
<option value="18">18</option>
<option value="19">19</option>
<option value="20">20</option>
<option value="21">21</option>
<option value="22">22</option>
<option value="23">23</option>
<option value="24">24</option>
<option value="25">25</option>
<option value="26">26</option>
<option value="27">27</option>
<option value="28" selected="selected">28</option>
<option value="29">29</option>
<option value="30">30</option>
<option value="31">31</option>
</select>-<select name="data[fecha][10][month]" id="fecha10Month">
<option value="01">Enero</option>
<option value="02">Febrero</option>
<option value="03">Marzo</option>
<option value="04">Abril</option>
<option value="05">Mayo</option>
<option value="06">Junio</option>
<option value="07">Julio</option>
<option value="08">Agosto</option>
<option value="09">Septiembre</option>
<option value="10">Octubre</option>
<option value="11" selected="selected">Noviembre</option>
<option value="12">Diciembre</option>
</select>-<select name="data[fecha][10][year]" id="fecha10Year">
<option value="2011" selected="selected">2011</option>
<option value="2010">2010</option>
<option value="2009">2009</option>
<option value="2008">2008</option>
<option value="2007">2007</option>
<option value="2006">2006</option>
<option value="2005">2005</option>
<option value="2004">2004</option>
<option value="2003">2003</option>
<option value="2002">2002</option>
<option value="2001">2001</option>
<option value="2000">2000</option>
<option value="1999">1999</option>
<option value="1998">1998</option>
<option value="1997">1997</option>
<option value="1996">1996</option>
<option value="1995">1995</option>
<option value="1994">1994</option>
<option value="1993">1993</option>
<option value="1992">1992</option>
<option value="1991">1991</option>
<option value="1990">1990</option>
<option value="1989">1989</option>
<option value="1988">1988</option>
<option value="1987">1987</option>
<option value="1986">1986</option>
<option value="1985">1985</option>
<option value="1984">1984</option>
<option value="1983">1983</option>
<option value="1982">1982</option>
<option value="1981">1981</option>
<option value="1980">1980</option>
<option value="1979">1979</option>
<option value="1978">1978</option>
<option value="1977">1977</option>
<option value="1976">1976</option>
<option value="1975">1975</option>
<option value="1974">1974</option>
<option value="1973">1973</option>
<option value="1972">1972</option>
<option value="1971">1971</option>
<option value="1970">1970</option>
<option value="1969">1969</option>
<option value="1968">1968</option>
<option value="1967">1967</option>
<option value="1966">1966</option>
<option value="1965">1965</option>
<option value="1964">1964</option>
<option value="1963">1963</option>
<option value="1962">1962</option>
<option value="1961">1961</option>
<option value="1960">1960</option>
<option value="1959">1959</option>
<option value="1958">1958</option>
<option value="1957">1957</option>
<option value="1956">1956</option>
<option value="1955">1955</option>
<option value="1954">1954</option>
<option value="1953">1953</option>
<option value="1952">1952</option>
<option value="1951">1951</option>
<option value="1950">1950</option>
<option value="1949">1949</option>
<option value="1948">1948</option>
<option value="1947">1947</option>
<option value="1946">1946</option>
<option value="1945">1945</option>
<option value="1944">1944</option>
<option value="1943">1943</option>
<option value="1942">1942</option>
<option value="1941">1941</option>
<option value="1940">1940</option>
<option value="1939">1939</option>
<option value="1938">1938</option>
<option value="1937">1937</option>
<option value="1936">1936</option>
<option value="1935">1935</option>
<option value="1934">1934</option>
<option value="1933">1933</option>
<option value="1932">1932</option>
<option value="1931">1931</option>
</select></div></td>
			</tr>

	</tbody></table>
					</div>
					<h3><a href="#">Resultados</a></h3>
					<div>Second content</div>
					<h3><a href="#">Medicaciones</a></h3>
					<div>Second content</div>
				</div>
			</div>
		</div>
		<div id="panel_separador" style="margin-top: <?php echo $altura_contenido ?>px;"><a href="javascript:OcultarPanel('<?php echo $ancho_contenido ?>');" id="link_separador"><img src="/images/ico-separador-off.png" id="img_separador" border="0"/></a></div>
		<div id="panel_derecho" style="margin-top: <?php echo $altura_contenido ?>px; width: <?php echo $ancho_contenido ?>">
			<?php echo $this->Session->flash(); ?> 
			<?php echo $content_for_layout; ?>
		</div>
		<div id="panel_banner_derecho" style="margin-top: <?php echo $altura_contenido ?>px;<?php echo $mostrar_skyscraper ?>">
		<!--/* OpenX Javascript Tag v2.8.8 */-->
		<script type='text/javascript'><!--//<![CDATA[
		   var m3_u = (location.protocol=='https:'?'https://ads.epicrisisweb.com.ar/www/delivery/ajs.php':'http://ads.epicrisisweb.com.ar/www/delivery/ajs.php');
		   var m3_r = Math.floor(Math.random()*99999999999);
		   if (!document.MAX_used) document.MAX_used = ',';
		   document.write ("<scr"+"ipt type='text/javascript' src='"+m3_u);
		   document.write ("?zoneid=2");
		   document.write ('&amp;cb=' + m3_r);
		   if (document.MAX_used != ',') document.write ("&amp;exclude=" + document.MAX_used);
		   document.write (document.charset ? '&amp;charset='+document.charset : (document.characterSet ? '&amp;charset='+document.characterSet : ''));
		   document.write ("&amp;loc=" + escape(window.location));
		   if (document.referrer) document.write ("&amp;referer=" + escape(document.referrer));
		   if (document.context) document.write ("&context=" + escape(document.context));
		   if (document.mmm_fo) document.write ("&amp;mmm_fo=1");
		   document.write ("'><\/scr"+"ipt>");
		//]]>--></script><noscript><a href='http://ads.epicrisisweb.com.ar/www/delivery/ck.php?n=afb563ca&amp;cb=2487' target='_blank'><img src='http://ads.epicrisisweb.com.ar/www/delivery/avw.php?zoneid=2&amp;cb=2487&amp;n=afb563ca' border='0' alt='' /></a></noscript>
		<!--/* FIN OpenX Javascript Tag v2.8.8 */-->
		</div>
		<!-- end page -->
		<div style="clear: both;">&nbsp;</div>
		<div id="ventana_modal"></div>
		<div id="dialog-message"></div>

		<!-- start quick search -->
		<div id="slideout">
			<div id="slidecontent">
<?php
/*-------------------------------------------------------------------------------*/
/* Muestro Todos los Pacientes del Cliente									 */
/*-------------------------------------------------------------------------------*/

	$lst_pacientes_cliente = json_decode($this->requestAction('/people/getjsonpacientes'));

	if(!empty($lst_pacientes_cliente)){
		echo '<b>'.__('Buscador rápido',true).'</b>';

		foreach($lst_pacientes_cliente AS $registro){
			$apellido_paciente = $registro->str[3]->value." ".$registro->str[4]->value." ".$registro->str[5]->value;
			$nombre_paciente = $registro->str[6]->value." ".$registro->str[7]->value." ".$registro->str[8]->value;
			$id_paciente = $registro->str[2]->value;
			$fecha_nacimiento = $registro->str[1]->value;
			$edad = $this->requestAction('/people/obtenerEdad/'.$fecha_nacimiento);

			$arreglo_pacientes_cliente[$id_paciente] = "$apellido_paciente $nombre_paciente ($edad)";
		}

		echo $this->Form->input('person.id',array('class' => 'chzn-select', 'label' => '', 'data-placeholder' => __('Seleccione un  Paciente',true), 'empty'=> __('Seleccione un  Paciente',true), 'onchange' => 'GoHCPaciente(this.value)', 'style' => 'width: 250px','options' => $arreglo_pacientes_cliente ));

	}else{
		echo __('No hay pacientes cargados...');
	}

/*-------------------------------------------------------------------------------*/
?>
			</div>
			<div id="clickme"><p><?php __('Pacientes'); ?></p></div>
		</div>
		<!-- end quick search -->
	<div id="footer">
		<?php echo $this->element('analytics'); ?>
	</div>
</body>
</html>